package com.jack.common.constant;

/**
 * Created by LiJiakui on 17/4/26.
 */
public enum ConstantCode {
    SUCCESS(200,"SUCCESS"),ERROR_402(402,"参数错误"),ERROR_403(403,"业务异常"),
    ERROR_500(500,"程序异常"),ERROR_505(505,"SQL异常");

    private int code;
    private String msg;
    private ConstantCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
